package edu.sctu.practice.class01.zhoumengxue.assign.assign03.assign03_1;

/**
 * Created by ASUS on 2015/10/22.
 */
public class Circle extends GeometricObject {

    private double PI = Math.PI;
    private double circleArea;
    private double circlePerimeter;

    public Circle(String color, double width, double length) {
        super(color, width, length);
    }

    @Override
    public double findArea() {
        circleArea = PI * width * width;
        System.out.println("圆面积：" + circleArea);
        return circleArea;
    }

    @Override
    public double findPerimeter() {
        circlePerimeter = 2 * PI * width;
        System.out.println("圆周长：" + circlePerimeter);
        return circlePerimeter;
    }

}
